package com.warmlight.voicepacket.network.base;

/**
 * 服务器请求返回
 * Created by weiweijinpeng on 2018/1/19.
 */
public interface NetworkCallback<T> {

    /**
     * 成功，并且result不为空
     */
    void onSuccess(BaseResponse<T> result, String responseStr);

    /**
     * 错误
     */
    void onError(Throwable t);

}
